/**
 *  Copyright (C) 2006 zhangbo (freeeob@gmail.com)
 *
 *  This product is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU Lesser General Public License as published by
 *  the Free Software Foundation; either version 2.1 of the License, or
 *  (at your option) any later version.
 * 
 *  This product is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU Lesser General Public License for more details.
 * 
 *  You should have received a copy of the GNU Lesser General Public License
 *  along with this library; if not, write to the Free Software
 *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA.
 *
 *  author:zhangbo
 *  Email:jsjava@gmail.com
 */

/**  The MutableTreeNode class references to javax.swing.tree.MutableTreeNode of J2SE1.4 */
 
/**
 * constructor
 */
function MutableTreeNode(){
	this.jsjava_class="jsjavax.swing.tree.MutableTreeNode";
}

MutableTreeNode.prototype=new TreeNode();
MutableTreeNode.prototype.constructor=MutableTreeNode;

/**
 * Adds child to the receiver at index
 * @param child
 * @param index
 */
MutableTreeNode.prototype.insert=function(child,index){
    throw new IllegalStateException(IllegalStateException.ERROR,"This is an interface method and you should use the concrete method");	
};

/**
 * Removes the child at index from the receiver
 * @param index
 */
MutableTreeNode.prototype.remove=function(index){
    throw new IllegalStateException(IllegalStateException.ERROR,"This is an interface method and you should use the concrete method");	
};

/**
 * Removes node from the receiver
 * @param node
 */
MutableTreeNode.prototype.remove=function(node){
    throw new IllegalStateException(IllegalStateException.ERROR,"This is an interface method and you should use the concrete method");	
};

/**
 * Removes the receiver from its parent
 */
MutableTreeNode.prototype.removeFromParent=function(){
    throw new IllegalStateException(IllegalStateException.ERROR,"This is an interface method and you should use the concrete method");	
};

/**
 * Sets the parent of the receiver to newParent
 * @param newParent
 */
MutableTreeNode.prototype.setParent=function(newParent){
    throw new IllegalStateException(IllegalStateException.ERROR,"This is an interface method and you should use the concrete method");	
};

/**
 * Resets the user object of the receiver to object
 * @param object
 */
MutableTreeNode.prototype.setUserObject=function(object){
    throw new IllegalStateException(IllegalStateException.ERROR,"This is an interface method and you should use the concrete method");	
};